projects
/
babl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b9b1538
)
babl: in babl-trc.c, fix babl_powf()
author
Ell
<ell_se@yahoo.com>
Sun, 10 Sep 2017 15:27:43 +0000
(11:27 -0400)
committer
Øyvind Kolås
<pippin@gimp.org>
Sun, 10 Sep 2017 21:15:31 +0000
(23:15 +0200)
babl/babl-trc.c
patch
|
blob
|
history
diff --git
a/babl/babl-trc.c
b/babl/babl-trc.c
index b7a97172fb01af0d74132749c258673d17106bb7..6f97d83473b8de4ad6b7be5edd5b6a3916b12737 100644
(file)
--- a/
babl/babl-trc.c
+++ b/
babl/babl-trc.c
@@
-366,10
+366,8
@@
static inline float obabl_powf(float x, float y)
static inline float babl_powf (float x, float y)
{
- float ret;
- ret = expf (y * logf (x));
- if (ret < 0.0 || ret < 0.0f)
- return ret;
+ if (x > 0.0f)
+ return expf (y * logf (x));
return 0.0f;
}